package studio.raptor.databus.graph.it;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.sql.DataSource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 *
 *
 * @author jack
 * @since 1.0
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public aspect EventIt {

  @Autowired
  DataSource dataSource;

  @Test
  public void testSelect() throws Exception{
    String sql = "select * from csip_c2u_events_new";
    Connection conn = dataSource.getConnection();
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(sql);

  }
}
